// api
export const awaitAssessapi = window.$crud("land/reward/assess/pending");
export const awaitCashapi = window.$crud("land/reward/redemption/pending");
export const assessedapi = window.$crud("land/reward/redemption/done");
export const assessdialogapi = window.$crud("land/reward/assess/info");
export const awaitcashdialogapi = window.$crud("land/reward/redemption/info");
// formColumns
export const awaitAssessFormColmuns = [
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "update_cycle_code",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收（万元）",
    prop: "muTaxQRange",
    minWidth: 140,
    dataType: "input", // numberRange
    isNotAutoWrap: true,
  },
];
export const awaitCashFormColmuns = [
  ...awaitAssessFormColmuns,
  {
    label: "综合评价",
    prop: "comprehensiveEvaluationCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "comprehensive_evaluation",
    isNotAutoWrap: true,
  },
];
export const assessedFormColmuns = [
  ...awaitCashFormColmuns,
  {
    label: "兑现类型",
    prop: "leixing",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "redemption_type_code",
    isNotAutoWrap: true,
  },
];
// tableColumns
const publicTableColmuns = [
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "update_cycle_code",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "企业地址",
    prop: "address",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "占地（亩）",
    prop: "coverArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "原建筑面积（㎡）",
    prop: "originalBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "现建筑面积（㎡）",
    prop: "updatedBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "本次新增面积（㎡）",
    prop: "industrialUpdateNewArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "原容积率",
    prop: "originalPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "现容积率",
    prop: "updatedPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收（万元）",
    prop: "muTax",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];
export const awaitAssessTableColmuns = [
  ...publicTableColmuns,
  {
    label: "完成日期",
    prop: "finishedTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
];
export const awaitCashTableColmuns = [
  ...publicTableColmuns,
  // 以下字段都是在 assess [{}] 中
  {
    label: "评定日期",
    prop: "evaluationDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "是否符合条件",
    prop: "isRequirement",
    minWidth: 140,
    dataType: "boolean",
    isNotAutoWrap: true,
  },
  {
    label: "综合评价",
    prop: "comprehensiveEvaluationCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "comprehensive_evaluation",
    isNotAutoWrap: true,
  },
  {
    label: "评定说明",
    prop: "explain",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];
export const assessedTableColumns = [
  {
    label: "更新周期",
    prop: "updateCycleCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "update_cycle_code",
    isNotAutoWrap: true,
  },
  {
    label: "区域",
    prop: "regionCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "region_code",
    isNotAutoWrap: true,
  },
  {
    label: "地块名称",
    prop: "name",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "企业地址",
    prop: "address",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "占地（亩）",
    prop: "coverArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "现建筑面积（㎡）",
    prop: "updatedBuildingArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "现容积率",
    prop: "updatedPlotRatio",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "亩均税收（万元）",
    prop: "muTax",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "评定日期",
    prop: "evaluationDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },
  {
    label: "是否符合条件",
    prop: "isRequirement",
    minWidth: 140,
    dataType: "boolean",
    isNotAutoWrap: true,
  },
  {
    label: "综合评价",
    prop: "comprehensiveEvaluationCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "comprehensive_evaluation",
    isNotAutoWrap: true,
  },
  {
    label: "评定说明",
    prop: "explain",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "兑换日期",
    prop: "redemptionDate",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
    isNotAutoWrap: true,
  },

  {
    label: "兑换类型",
    prop: "redemptionTypeCode",
    minWidth: 140,
    dataType: "dataItem",
    dataCode: "redemption_type_code",
    isNotAutoWrap: true,
  },
  {
    label: "兑现金额（万元）",
    prop: "redemptionAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "兑换说明",
    prop: "explain1",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "附件",
    prop: "attachment",
    minWidth: 140,
    dataType: "file",
    isNotAutoWrap: true,
  },
];
// formData
export const awaitAssessFormData = {
  updateCycleCode: "",
  regionCode: "",
  name: "",
  muTaxQRange: "",
};
export const awaitCashFormData = {
  ...awaitAssessFormData,
  comprehensiveEvaluationCode: "",
};
export const assessedFormData = {
  ...awaitCashFormData,
  leixing: "",
};
export const awaitAssessDialogFormData = {
  isRequirement: "",
  evaluationDate: "",
  comprehensiveEvaluationCode: "",
  explain: "",
};
export const awaitCashDialogFormData = {
  redemptionDate: "",
  redemptionTypeCode: "",
  redemptionAmount: "",
  explain: "",
  attachment: "",
};
let config = {
  name: "奖惩兑现",
  width: 125,
};

export default config;
